package com.hq.zb.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 客户合同
 * </p>
 *
 * @author huanghanrui
 * @since 2022-03-24
 */
@Data
@TableName("cus_contract_info")
public class ContractInfo extends BaseModel<ContractInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 客户ID
     */
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 合同编号
     */
    @TableField("contract_code")
    private String contractCode;
    /**
     * 合同模板
     */
    @TableField("contract_mould")
    private String contractMould;
    /**
     * 跟进时间
     */
    @TableField("contract_name")
    private String contractName;
    /**
     * 项目
     */
    private String project;
    /**
     * 审核状态：待审核、已审核
     */
    @TableField("approval_status")
    private String approvalStatus;
    /**
     * 审核人
     */
    @TableField("approved_by")
    private String approvedBy;
    /**
     * 审核日期
     */
    @TableField("approved_date")
    private Date approvedDate;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
